<template>
	<view class="agreement-mask">
		<view class="agreement-popup">
			<view class="agreement-header">举报须知</view>
			<scroll-view scroll-y="true" class="agreement-body">
				<view class="article-p">待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知</view>
				<view class="article-p">待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知</view>
				<view class="article-p">待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知</view>
				<view class="article-p">待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知，待确认的举报须知</view>
			</scroll-view>
			<view class="agreement-footer" @click="agree">
				<text>同意</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			agree() {
				uni.setStorageSync('isAgreementConfirmed', true)
				uni.redirectTo({
					url: '/pages/report/report'
				})
			}
		}
	}
</script>

<style>
	.agreement-mask {
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.4);
	}

	.agreement-popup {
		display: flex;
		flex-direction: column;
		position: absolute;
		left: 30px;
		top: 30px;
		right: 30px;
		bottom: 30px;
		background-color: #FFFFFF;
		/* border-radius: 10px; */
		overflow: hidden;
	}

	.agreement-header {
		padding-top: 10px;
		line-height: 40px;
		font-size: 20px;
		text-align: center;
	}


	.agreement-body {
		display: flex;
		flex: 1;
		box-sizing: border-box;
		padding: 0px 15px;
	}

	.article-p {
		font-size: 14px;
		text-indent: 2em;
		line-height: 1.3em;
		color: #666666;
		margin-bottom: 10px;
	}

	.agreement-footer {
		padding: 10px 0px;
		text-align: center;
		background-color: #007AFF;
		color: white;
		font-size: 16px;
	}
</style>
